package com.action.common.constant;

/**
 * @author sl shilun217@qq.com
 * @Deacription mq相关exchange queue bindingKey routingKey名称
 * @date 2021/07/04/10:20
 **/
public class MqConstant{
    /** 订单相关 **/
    public static final String ORDER_EXCHANGE_NAME = "order-event-exchange";

    public static final String ORDER_CREATE_QUEUE_NAME = "order.create.queue";
    public static final String ORDER_CREATE_BINGDINGKEY = "order.create.#";
    public static final Long ORDER_CREATE_QUEUE_TTL = 30*60*1000L;
    public static final String ORDER_CREATE_ROUTINGKEY = "order.create.order";
    public static final String ORDER_RELEASE_QUEUE_NAME = "order.release.queue";
    public static final String ORDER_RELEASE_BINGDINGKEY = "order.release.#";
    public static final String ORDER_RELEASE_ROUTINGKEY = "order.release.order";
    /** 库存相关 **/
    public static final String ORDER_STOCK_LOCK_QUEUE_NAME = "order.stock.lock.queue";
    public static final String ORDER_STOCK_LOCK_BINGDINGKEY = "order.stock.lock.#";
    public static final String ORDER_STOCK_LOCK_ROUTINGKEY = "order.stock.lock.ware";
    public static final Long ORDER_STOCK_LOCK_QUEUE_TTL = 40*60*1000L;
    public static final String ORDER_STOCK_RELEASE_QUEUE_NAME = "order.stock.release.queue";
    public static final String ORDER_STOCK_RELEASE_BINGDINGKEY = "order.stock.release.#";
    public static final String ORDER_STOCK_RELEASE_ROUTINGKEY = "order.stock.release.ware";
    /** 秒杀 **/
    public static final String SECKILL_ORDER_TO_CREATE_QUEUE_NAME = "seckill.order.to.create.queue";
    public static final String SECKILL_ORDER_TO_CREATE_BINGDINGKEY = "seckill.order.create.to.#";
    public static final String SECKILL_ORDER_TO_CREATE_ROUTINGKEY = "seckill.order.create.to.order";
}
